"use strict";

const log = require("npmlog");

// log 优先级level
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : "info"; // 判断debug模式
log.heading = "luo-cli-dev"; // 命令行前缀
log.addLevel("success", 2000, { fg: "green", bold: true }); // 添加自定义命令

function index() {
  log.info("cli", "test");
}

module.exports = log;
